package org.yoao.crm.acl;

import java.util.HashMap;
import java.util.Map;

import org.apache.log4j.Logger;

public class ACLConstants {

	private static final Logger log = Logger.getLogger(ACLConstants.class);

	public static final String AP_SEARCH = "AP_SEARCH";
	public static final String AP_SEARCH_ALL = "AP_ALL_SEARCH";
	public static final String AP_NEW = "AP_NEW";
	public static final String AP_MODIFY = "AP_MODIFY";
	public static final String AP_DELETE = "AP_DELETE";
	public static final String AP_DOWNLOADTEMPLATE = "AP_DOWNLOADTEMPLATE";
	public static final String AP_EXPORTOUT = "AP_EXPORTOUT";
	public static final String AP_EXPORTIN = "AP_EXPORTIN";
	public static final String AP_SIGNATURE_YES = "AP_SIGNATURE_YES";
	public static final String AP_SIGNATURE_NO = "AP_SIGNATURE_NO";
	public static final String AP_ALLOCATION = "AP_ALLOCATION";
	public static final String AP_CUST_TYPE = "AP_CUST_TYPE";
	public static final String AP_OPEN_USER = "AP_OPEN_USER";
	public static final String AP_CLOSE_USER = "AP_CLOSE_USER";
	public static final String AP_SMS = "AP_SMS";
	public static final String AP_SUCCESS = "AP_SUCCESS";
	public static final String AP_MODIFY_MEMO = "AP_MODIFY_MEMO";
	public static final String AP_CANCEL = "AP_CANCEL";
	public static final String AP_AUDIT = "AP_AUDIT";
	public static final String AP_PAY = "AP_PAY";

	public static final Map<String, String> ACTION_PERMISSION_MAP = new HashMap<String, String>();

	static {
		log.debug("init action permission map....");
		if (ACTION_PERMISSION_MAP.isEmpty()) {
			ACTION_PERMISSION_MAP.put(AP_SEARCH, "搜索");
			ACTION_PERMISSION_MAP.put(AP_SEARCH_ALL, "全搜索");
			ACTION_PERMISSION_MAP.put(AP_NEW, "新增");
			ACTION_PERMISSION_MAP.put(AP_MODIFY, "修改");
			ACTION_PERMISSION_MAP.put(AP_DELETE, "删除");
			ACTION_PERMISSION_MAP.put(AP_DOWNLOADTEMPLATE, "下载模板");
			ACTION_PERMISSION_MAP.put(AP_EXPORTOUT, "导出");
			ACTION_PERMISSION_MAP.put(AP_EXPORTIN, "导入");
			ACTION_PERMISSION_MAP.put(AP_SIGNATURE_YES, "已签到");
			ACTION_PERMISSION_MAP.put(AP_SIGNATURE_NO, "未签到");
			ACTION_PERMISSION_MAP.put(AP_ALLOCATION, "分配业务员");
			ACTION_PERMISSION_MAP.put(AP_CUST_TYPE, "分配类型");
			ACTION_PERMISSION_MAP.put(AP_OPEN_USER, "开通账户");
			ACTION_PERMISSION_MAP.put(AP_CLOSE_USER, "通用账户");
			ACTION_PERMISSION_MAP.put(AP_SMS, "发送短信");
			ACTION_PERMISSION_MAP.put(AP_SUCCESS, "已成交");
			ACTION_PERMISSION_MAP.put(AP_MODIFY_MEMO, "修改备注");
			ACTION_PERMISSION_MAP.put(AP_CANCEL, "撤销");
			ACTION_PERMISSION_MAP.put(AP_AUDIT, "发货");
			ACTION_PERMISSION_MAP.put(AP_PAY, "已支付");
		}
	}
}
